<link rel="stylesheet" type="text/css" href="/stylesheets/listing.css"/>
<link rel="stylesheet" type="text/css" href="/stylesheets/home.css"/>
<div id="findlyst">
    Find a Lyst for...<span class="example">(Eg: Moving House)</span>
</div>
<div id="search_query">
    <form action="/checklist/search" method="get" id="search_form">
        <input type="text" id="search_q" name="search_query"/><input type="submit" id="search_button" value="Find lists"/>
    </form>
</div>
<div id="listing">
    <ul type="none">
        <%@checklists.each do | checklist | %>
        <li id="list">
            <div class="checklist_title">
                <%=checklist.items.size %>step(s) for <%= link_to checklist.name, :controller => 'checklist', :action => 'show', :id => checklist.id %>
            </div>
            <span class="edit"><%= link_to "edit", :controller => "checklist", :action => "edit", :id => checklist.id %>
            </span>
        </li>
        <%end %>
    </ul>
</div>
